@import '../../../common/scss/variable.scss';

.red-card-renewal-page {
  height: 100%;
  display: flex;
  @include flex(column);
  background-color: $color-page-bg-default;
  box-sizing: border-box;
  .body {
    flex: 1;
    overflow: auto;
  }
  .header {
    width: 100%;
    height: 300px;
    @include flex(column);
    justify-content: flex-start;
    box-sizing: border-box;
    h2 {
      font-size: 28px;
      color: #fff;
      font-weight: 600;
      line-height: 38px;
      margin-top: 18px;
    }
    h3 {
      font-size: $font-size-lg;
      color: #fff;
      line-height: 22.5px;
      margin-top: 5px;
    }
    img {
      margin: $gap-default;
      width: 100%;
      height: 250px;
      margin-top: -5px;
    }
  }
  .content {
    @include flex(column);
    justify-content: flex-start;
    width: 100%;
    padding: $gap-default;
    .card {
      width: 100%;
      &.gradient {
        background: linear-gradient(180deg, #FFF2E6 0%, #FFFFFF 30%);
      }
      @include flex(column);
      border-radius: 10px;
      background-color: #fff;
      padding: $gap-default;
      margin-top: $gap-default;
      .title {
        font-size: $font-size-xl;
        margin-top: 20px;
        margin-bottom: 15px
      }
      .subtitle {
        font-size: $font-size-lg;
        margin-bottom: 15px;
        color: #A3A3A3
      }
    }

    // 蓝色card样式
    .card_blue {
      width: 100%;
      @include flex;
      background-color: #E3F1FF;
      color: #207EFF;
      font-size: $font-size-default;
      font-weight: 500;
      line-height: 20px;
      padding: 10px;
      text-align: center;
      margin: $gap-sm 0;
      border-radius: 8px;
      border: 1px solid;
    }

    // 橙色card样式
    .card_orange {
      @include flex;
      background: #FFF4E3;
      border-radius: 8px;
      padding: $gap-default;
      div {
        flex: 1;
        img {
          width: 100%;
        }
      }
      .card_orange_text {
        font-size: $font-size-sm;
        color: #7E5E2C;
        line-height: 20px;
        margin-left: 15px;
        &.lg {
          font-size: $font-size-sm;
          color: #121212;
          line-height: 30px
        }
      }
    }

    .section_title {
      width: 100%;
      padding-left: 10px;
      position: relative;
      font-size: $font-size-xl;
      color: #333333;
      &::before {
        position: absolute;
        display: block;
        content: '';
        left: 0;
        top: 0;
        width: 3.5px;
        height: 18px;
        background: linear-gradient(180deg, #FDBA30 0%, #FC8F2B 100%);
        border-radius: 1.5px;
      }
    }

    .guaranteeDetails {
      width: 100%;
      margin-top: 10px;
      border-collapse: collapse;
     
    
      thead {
        width: 100%;
        height: 32px;
        background: linear-gradient(180deg, #FDB930 0%, #FC8D2B 100%);
        border-radius: 5px 5px 0px 0px;
        th {
          font-size: 13px;
          color: #fff;
          height: 32px;
          line-height: 30px;
          text-align: center;
          font-weight: normal;
          &:first-of-type {
            width: 130px;
            text-align: center;
          }
          &:nth-of-type(2) {
            width: 90px;
            text-align: center;
          }
          &:nth-of-type(3) {
            text-align: center;
          }
        }
      }
      tbody {
        width: 100%;
        background-color: #FFF4E3;
        tr {
          width: 100%;
        }
        td {
          height: 32px;
          padding: 7.5px 8.5px;
          border: 1px solid #FC8F2B;
          color: #272A33;
          line-height: 16.5px;
          font-size: 12px;
          &:first-of-type {
            width: 130px;
            text-align: left;
          }
          &:nth-of-type(2) {
            width: 90px;
            text-align: center;
          }
          &:nth-of-type(3) {
            text-align: center;
          }
        }
      }
    }

    .detail {
      width: 100%;
      margin-top: $gap-sm;
      .detail_item {
        @include flex;
        justify-content: space-between;
        font-size: $font-size-lg;
        color: #333;
        margin: 10px 0;
        span:last-of-type {
          color: $color-primary;
          font-weight: 500
        }
      }
    }

    .split {
      height: 1px;
      background: #D8D8D8;
      width: 100%;
      margin: 12px 0;
    }

    .renewal {
      width: 100%;
      margin: $gap-default 0 0;
      height: 24px;
      @include flex;
      label {
        font-size: $font-size-sm;
        color: #666666;
        width: 110px;
      }
      .renewal_input {
        position: relative;
        flex: 1;
        align-self: stretch;
        input {
          position: absolute;
          left: 0;
          top: 0;
          height: 100%;
          width: 100%;
        }
      }
      .form_clear {
        @include flex;
        align-self: stretch;
        padding-right: $gap-default;
        img {
          width: 14px;
          height: 14px;
        }
      }
    }
    .renewal_desc {
      font-size: $font-size-xs;
      color: #F42D29;
      font-size: 12px;
      font-weight: 500;
    }

    // card 标题样式
    .card_title {
      @include flex;
      width: 230px;
      height: 43px;
      background: linear-gradient(90deg, #FDBD30 0%, #FC8C2B 100%);
      border-radius: 0px 0px 13px 13px;
      color: #fff;
      font-size: $font-size-lg;
      .ic_upgrade {
        width: 61px;
        height: 19px;
        margin-right: 2px
      }
    }

    // 亮点
    .hightlights {
      @include flex;
      .hightlights_item {
        @include flex(column);
        font-size: $font-size-sm;
        color: #121212;
        margin: 15px;
        img {
          width: 57px;
          height: 57px;
        }
      }
    }

    .hightlights_list {
      width: 100%;
      @include flex(column);
      .hightlights_list_item {
        width: 100%;
        margin: 5px 0;
        @include flex;
        justify-content: flex-start;
        font-size: $font-size-xl;
        padding: 0 $gap-default;
        color: #7C450D;
        img {
          width: 16px;
          height: 16px;
          margin-right: 5px;
        }
      }
    }

    // 表格
    .table {
      table-layout: fixed;
      margin-top: $gap-sm;
      border-radius: 8px;
      img {
        width: 12.5px;
        height: 12.5px;
        margin-right: 2px;
      }
      td:first-of-type {
        @include flex;
        background-color: #FFE6BF;
        color: #FC8D2B;
        width: 65px;
        font-weight: 500;
        font-size: $font-size-default;
        height: 40px;
      }
      td:last-of-type {
        font-size: $font-size-sm;
        color: #756F65;
        padding: 0 5px;
        line-height: 1.5;
        vertical-align: middle;
        background-color: #FFF4E3;
        color: #756F65;
      }
    }

    // 效果
    .effect {
      .effect_item {
        @include flex;
        margin-top: 10px;
        align-items: flex-start;
        justify-content: flex-start;
        label {
          @include flex;
          width: 80px;
          font-size: $font-size-default;
          color: #121212;
          font-weight: bold;
          line-height: 20px;
        }
        p {
          flex: 1;
          text-align: left;
          font-size: $font-size-default;
          line-height: 20px;
        }
      }
    }

    // 保证
    .guarantee {
      @include flex;
      div {
        @include flex;
        margin: 20px 7.5px 15px;
        font-size: $font-size-lg;
        font-weight: bold;
        img {
          width: 23px;
          height: 23px
        }
      }
    }

    // 服务
    .service {
      @include flex;
      width: 100%;
      margin-bottom: $gap-sm;
      flex-wrap: wrap;
      .service_item {
        width: 140px;
        height: 30px;
        background: linear-gradient(180deg, #FFFFFF 50%, #FFF4E3 100%);
        border-radius: 8px;
        @include flex;
        justify-content: flex-start;
        margin: 5px 7.5px;
        box-sizing: border-box;
        padding-left: 24px;
        img {
          width: 20px;
          height: 20px;
          margin-right: 5px;
        }
      }
    }

    // 指导
    .guide {
      .guide_item {
        @include flex;
        font-size: 14px;
        font-weight: 500;
        line-height: 20px;
        img {
          width: 50px;
          height: 50px;
          margin-right: $gap-sm;
        }
        .guide_item_text {
          flex: 1;
          text-align: left
        }
      }
    }

    .btn_blue {
      @include flex;
      font-size: $font-size-lg;
      color: #fff;
      font-weight: 500;
      width: 182px;
      height: 34px;
      background: linear-gradient(28deg, #207EFF 0%, #76CFFD 100%);
      border-radius: 17px;
    }
  }
  .footer {
    @include flex;
    width: 100%;
    background-color: #fff;
    height: 63px;
    padding: $gap-default;
    .btn {
      @include flex;
      justify-content: space-between;
      width: 100%;
      height: 42px;
      border-radius: 21px;
      color: #fff;
      font-size: $font-size-default;
      background-color: #499EFE;
    }
    .btn_phone {
      flex: 1;
      text-align: center
    }
    .btn_insure {
      @include flex;
      width: 120px;
      height: 42px;
      border-radius: 21px;
      color: #fff;
      font-size: $font-size-default;
      background-color: $color-primary;
    }
  }
}